﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AbetEvaluation.Business
{
    public class Question
    {
        public Guid OutcomeID
        {
            get;
            set;
        }

        public Guid QuestionID
        {
            get;
            set;
        }

        public String QuestionText
        {
            get;
            set;
        }

        public Boolean Answer
        {
            get;
            set;
        }

        public int Points
        {
            get;
            set;
        }

        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return false;
            }

            Question other = (Question)obj;
            return this.QuestionID.Equals(other.QuestionID);
        }

        public override int GetHashCode()
        {
            return this.QuestionID.GetHashCode();
        }
    }
}
